using System;

namespace UnityORM
{
	public class TableAttribute : Attribute
	{
		public string name;
		public IndexAttribute[] indexs;
	}
	
	public class KeyAttribute : Attribute
	{
		public bool AutoIncrement;

		public KeyAttribute(){}
		public KeyAttribute(bool AutoIncrement){this.AutoIncrement = AutoIncrement;}

	}
	
	public class MetaInfoAttirbute : Attribute
	{
		public string NameInJSON;
		public string NameInTable;
	}
	
	public class IgnoreAttribute : Attribute
	{
	}
	
	public enum Collate
	{
		NOCASE,
		
		RTRIM,
		
		BINARY,
	}
	
	public class IndexAttribute : Attribute
	{
		public string name;
		public string[] colums;
		public Collate[] collates;
		public bool[] orders;
	}
}

